\hypertarget{class_config}{\section{Config类 参考}
\label{class_config}\index{Config@{Config}}
}


配置类  




{\ttfamily \#include $<$Config.\+h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_config_abd0c571c116924871e30444b192b792a}{Config} ()
\begin{DoxyCompactList}\small\item\em Config构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_config_a543dce59b66475c5108088ee4ce1cdfc}{$\sim$\+Config} ()
\begin{DoxyCompactList}\small\item\em Config析构函数 \end{DoxyCompactList}\item 
bool \hyperlink{class_config_a2b0b38f7d4bf54e78606f3f0456763ef}{init\+With\+File} (const string \&cfg\+File)
\begin{DoxyCompactList}\small\item\em 初始化配置 \end{DoxyCompactList}\item 
bool \hyperlink{class_config_abcced892562fbf511c819f368bb4d922}{save\+As\+File} (const string \&cfg\+File)
\begin{DoxyCompactList}\small\item\em 保存配置 \end{DoxyCompactList}\item 
\hyperlink{class_settings}{Settings} \hyperlink{class_config_a3f8657f8bd673313737ae5609678313c}{operator\mbox{[}$\,$\mbox{]}} (string keyword)
\begin{DoxyCompactList}\small\item\em \mbox{[}\mbox{]}运算符重载,获取配置项 \end{DoxyCompactList}\item 
\hyperlink{class_settings}{Settings} \hyperlink{class_config_abfd2b0a58ab7f8686ec37ad5522fac80}{root\+Settings} ()
\begin{DoxyCompactList}\small\item\em 获取根配置 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
配置类 

\subsection{构造及析构函数说明}
\hypertarget{class_config_abd0c571c116924871e30444b192b792a}{\index{Config@{Config}!Config@{Config}}
\index{Config@{Config}!Config@{Config}}
\subsubsection[{Config}]{\setlength{\rightskip}{0pt plus 5cm}Config\+::\+Config (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_config_abd0c571c116924871e30444b192b792a}


Config构造函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_config_a543dce59b66475c5108088ee4ce1cdfc}{\index{Config@{Config}!````~Config@{$\sim$\+Config}}
\index{````~Config@{$\sim$\+Config}!Config@{Config}}
\subsubsection[{$\sim$\+Config}]{\setlength{\rightskip}{0pt plus 5cm}Config\+::$\sim$\+Config (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_config_a543dce59b66475c5108088ee4ce1cdfc}


Config析构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


\subsection{成员函数说明}
\hypertarget{class_config_a2b0b38f7d4bf54e78606f3f0456763ef}{\index{Config@{Config}!init\+With\+File@{init\+With\+File}}
\index{init\+With\+File@{init\+With\+File}!Config@{Config}}
\subsubsection[{init\+With\+File}]{\setlength{\rightskip}{0pt plus 5cm}bool Config\+::init\+With\+File (
\begin{DoxyParamCaption}
\item[{const string \&}]{cfg\+File}
\end{DoxyParamCaption}
)}}\label{class_config_a2b0b38f7d4bf54e78606f3f0456763ef}


初始化配置 


\begin{DoxyParams}{参数}
{\em cfg\+File} & 配置文件名称 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}
\hypertarget{class_config_a3f8657f8bd673313737ae5609678313c}{\index{Config@{Config}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!Config@{Config}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Settings} Config\+::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{string}]{keyword}
\end{DoxyParamCaption}
)}}\label{class_config_a3f8657f8bd673313737ae5609678313c}


\mbox{[}\mbox{]}运算符重载,获取配置项 


\begin{DoxyParams}{参数}
{\em keyword} & 配置项名称 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回配置项 
\end{DoxyReturn}
\hypertarget{class_config_abfd2b0a58ab7f8686ec37ad5522fac80}{\index{Config@{Config}!root\+Settings@{root\+Settings}}
\index{root\+Settings@{root\+Settings}!Config@{Config}}
\subsubsection[{root\+Settings}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Settings} Config\+::root\+Settings (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_config_abfd2b0a58ab7f8686ec37ad5522fac80}


获取根配置 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回根配置项 
\end{DoxyReturn}
\hypertarget{class_config_abcced892562fbf511c819f368bb4d922}{\index{Config@{Config}!save\+As\+File@{save\+As\+File}}
\index{save\+As\+File@{save\+As\+File}!Config@{Config}}
\subsubsection[{save\+As\+File}]{\setlength{\rightskip}{0pt plus 5cm}bool Config\+::save\+As\+File (
\begin{DoxyParamCaption}
\item[{const string \&}]{cfg\+File}
\end{DoxyParamCaption}
)}}\label{class_config_abcced892562fbf511c819f368bb4d922}


保存配置 


\begin{DoxyParams}{参数}
{\em cfg\+File} & 配置文件名称 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_config_8h}{Config.\+h}\item 
libemb/src/Config.\+cpp\end{DoxyCompactItemize}
